define (function() {
    // 'use strict';
    
    return function({data,cont,page}){
        // console.log(ops);
        let str=""
        for(var i=8*(page-1);i<8*page;i++){
            if(data.length>i){
                str+=`<li index="${data[i].proId}">
            <a href="./xiangqing.html?id=${data[i].proId}">
            <div class="schan1">
                <img src="${data[i].url}" alt="">
            </div>
            <h3>${data[i].name}
            </h3>
            <div class="schan2">
                <div class="schan21">
                    <span>总销量:</span>
                    <strong>${data[i].xiaoliang}</strong>
                </div>
                <div class="schan22">
                    <span>¥</span>
                    <strong>${data[i].price}</strong>
                </div>
                </a>
                <span class="iconfont icon-gouwuche add"></span>
            </div>
        </li>`
            }
        }
        cont.html(str);
    }
});